package com.example.service.impl;

import com.example.entity.Order;
import com.example.mapper.OrderMapper;
import com.example.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public void insert(List<Order> orders,LocalDateTime localDateTime) {
        orderMapper.insert(orders,localDateTime);
    }

    @Override
    public List<Order> select(Integer id) {
        return orderMapper.select(id);
    }
}
